﻿namespace Fetches.Fetch.Fetcher.AntiSpider
{
    public abstract class AntiSpiderRule
    {
        /// <summary>
        /// 根据规则配置反爬挑战者
        /// </summary>
        /// <param name="rule"></param>
        public abstract void Initialize(string rule);

        /// <summary>
        /// 序列化，用于传递
        /// </summary>
        /// <returns></returns>
        public abstract string Serialize();
    }
}
